
#include "block.h"

Block::Block(const QPointF &topLeft, const QSizeF &size, QObject *parent)
    : QObject{parent}, QRectF{topLeft, size}
{

}

Block::Block(const QPointF &topLeft, const QPointF &bottomRight, QObject *parent)
    : QObject{parent}, QRectF{topLeft, bottomRight}
{

}

Block::Block(qreal x, qreal y, qreal width, qreal height, QObject *parent)
    : QObject{parent}, QRectF{x, y, width, height}
{

}

Block::Block(const QRect &rectangle, QObject *parent)
    : QObject{parent}, QRectF{rectangle}
{

}

void Block::change()
{
    emit re_changeloc();
}
